package avicit.bdp.dms.approval.dto;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2023-06-20
 * @类说明：ApprovalHistoryDTO
 * @修改记录：
 * @注意事项：
 * @主要功能：审批中心历史DTO
 */
@ApiModel(value = "ApprovalHistoryDTO", description = "审批中心历史DTO")
@Table(name = "bdp_dms_approval_center_history")
public class ApprovalHistoryDTO extends BaseDTO {
    /**
     * 主键
     */
    @Id
    @LogField
    @ApiModelProperty(value = "主键")
    @FieldRemark(column = "id", field = "id", name = "id")
    @javax.persistence.Id
    @Column(name = "id")
    private String id;

    /**
     * 内容
     */
    @LogField
    @ApiModelProperty(value = "内容")
    @FieldRemark(column = "content", field = "content", name = "内容")
    @Column(name = "content")
    private String content;

    /**
     * 状态，0:待审批、1:通过、2:已驳回、3:已撤回
     */
    @LogField
    @ApiModelProperty(value = "状态，0:待审批、1:通过、2:已驳回、3:已撤回")
    @FieldRemark(column = "state", field = "state", name = "状态，0:待审批、1:通过、2:已驳回、3:已撤回")
    @Column(name = "state")
    private Integer state;
    @Transient
    private String stateName;

    /**
     * 审批单ID
     */
    @LogField
    @ApiModelProperty(value = "审批单ID")
    @FieldRemark(column = "approvalId", field = "approvalId", name = "审批单ID")
    @Column(name = "approval_id")
    private String approvalId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getApprovalId() {
        return approvalId;
    }

    public void setApprovalId(String approvalId) {
        this.approvalId = approvalId;
    }
}
